<?php

namespace Mlym\CodeGeneration\Middleware\Bean\Module;

use EasySwoole\Spl\SplBean;

class SchemaColumnBean extends SplBean
{
    protected $name;
    protected $comment;
    protected $type;
    protected $length;
    protected $default;
    protected $is_null = true;
    protected $auto_increment = false;
    protected $is_primary = false;

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name): void
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getComment()
    {
        return $this->comment;
    }

    /**
     * @param mixed $comment
     */
    public function setComment($comment): void
    {
        $this->comment = $comment;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param mixed $type
     */
    public function setType($type): void
    {
        $this->type = $type;
    }

    /**
     * @return mixed
     */
    public function getLength()
    {
        return $this->length;
    }

    /**
     * @param mixed $length
     */
    public function setLength($length): void
    {
        $this->length = $length;
    }

    /**
     * @return mixed
     */
    public function getDefault()
    {
        return $this->default;
    }

    /**
     * @param mixed $default
     */
    public function setDefault($default): void
    {
        $this->default = $default;
    }

    /**
     * @return bool
     */
    public function isNull(): bool
    {
        return $this->is_null;
    }

    /**
     * @param bool $is_null
     */
    public function setIsNull(bool $is_null): void
    {
        $this->is_null = $is_null;
    }

    /**
     * @return bool
     */
    public function isAutoIncrement(): bool
    {
        return $this->auto_increment;
    }

    /**
     * @param bool $auto_increment
     */
    public function setAutoIncrement(bool $auto_increment): void
    {
        $this->auto_increment = $auto_increment;
    }

    /**
     * @return bool
     */
    public function isIsPrimary(): bool
    {
        return $this->is_primary;
    }

    /**
     * @param bool $is_primary
     */
    public function setIsPrimary(bool $is_primary): void
    {
        $this->is_primary = $is_primary;
    }




}